* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

#app {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 头部样式 */
.header {
    background: #667EEA;
    color: white;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1000;
}

.header .one svg {
    fill: none;
    stroke: white;
    stroke-width: 90;
}

.header .one svg:hover {
    animation: move .9s;
}
@keyframes move {
    0% {
        stroke-dasharray: 0 3000;
    }

    100% {
        stroke-dasharray: 3000 0;
    }
}
@keyframes jump {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-5px);
    }
    
}
.header h1 {
    font-size: 2.5rem;
    padding: 1.7rem 0rem;
    font-weight: 600;
}

.header .icons-right .icon:hover{
    animation: jump .2s linear forwards;
}
/* 主容器 */
.main-container {
    flex: 1;
    display: flex;
    gap: 2rem;
    max-width: 1400px;
    margin: 180px auto 2rem;
    padding: 0 1rem;
    width: 100%;
}

/* 筛选面板 */
.filter-panel {
    width: 350px;
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    height: fit-content;
    position: sticky;
    top: 2rem;
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
}

.filter-panel h2 {
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    color: #333;
    border-bottom: 2px solid #667eea;
    padding-bottom: 0.5rem;
}

.filter-section {
    margin-bottom: 1.5rem;
}

.filter-section h3 {
    font-size: 1rem;
    color: #666;
    font-weight: 500;
    margin: 0;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-options label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.filter-options label:hover {
    color: #667eea;
}

.filter-options input[type="checkbox"] {
    margin-right: 0.5rem;
    cursor: pointer;
}

.reset-btn {
    width: 100%;
    padding: 0.8rem;
    background-color: #f0f0f0;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s;
    margin-top: 1rem;
}

.reset-btn:hover {
    background-color: #e0e0e0;
    transform: translateY(-1px);
}

/* 学生列表 */
.student-list {
    flex: 1;
    background: white;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

@keyframes Up {
    0%{
        transform: translateY(1000px);
        
    }
    100%{
        transform: translateY(0px);
        opacity: 1;
    }
}
/* 空状态 */
.empty-state {
    text-align: center;
    padding: 4rem 1rem;
    color: #999;
}

.empty-state p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}


/* 学生表格样式 */
.students-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
    /* 略微减小字体大小 */
    background-color: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    table-layout: fixed;
}

/* 表格头部样式 */
.students-table thead {
    background: #667EEA;
    color: white;
}

.students-table th {
    padding: 0.75rem 1rem;
    /* 减小内边距 */
    text-align: center;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 0.8rem;
    /* 略微减小字体大小 */
    /* 为每一列设置固定宽度 */
}

/* 表格主体样式 */
.students-table tbody tr[data-student-id]{
    /* 使用attr()函数获取data-student-id属性的值 */
    opacity: 0;
    animation: Up .5s calc(attr(data-student-id number) * 0.1s) forwards;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08);
    height: auto;
}

.students-table tbody tr:hover {
    background-color: #f8f9fa;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.students-table tbody tr:last-child {
    border-bottom: none;
}

.students-table td {
    padding: 0.75rem;
    vertical-align: middle;
    /* 保持垂直居中 */
    text-align: center;
    word-break: break-word;
}

/* 小技能标签容器 */
.skill-tags-small {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    /* 减小标签间距 */
    justify-content: center;
    align-items: center;
    min-height: 28px;
    /* 略微减小最小高度 */
}

/* 小技能标签样式 */
.tag-small {
    background-color: #667eea;
    color: white;
    padding: 0.2rem 0.6rem;
    /* 减小标签内边距 */
    border-radius: 20px;
    font-size: 0.75rem;
    /* 略微减小字体大小 */
    font-weight: 500;
    transition: all 0.2s ease;
}

.tag-small:hover {
    background-color: #764ba2;
    transform: scale(1.05);
}

/* 操作按钮样式 */
.students-table .contact-btn {
    padding: 0.35rem 0.75rem;
    /* 减小按钮内边距 */
    background-color: #667eea;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.8rem;
    /* 减小按钮字体大小 */
    font-weight: 500;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    line-height: 1.3;
}

.students-table .contact-btn:hover {
    background-color: #5a67d8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

/* 响应式布局 */
@media (max-width: 1024px) {
    .main-container {
        flex-direction: column;
    }

    .filter-panel {
        width: 100%;
        position: static;
    }
}

@media (max-width: 768px) {
    .header h1 {
        font-size: 2rem;
    }

    .students-table {
        font-size: 0.9rem;
        table-layout: fixed;
    }

    .students-table th,
    .students-table td {
        padding: 0.75rem 0.5rem;
    }

    .students-table th {
        font-size: 0.75rem;
    }

    /* 响应式列宽 */
    .students-table th:nth-child(1),
    .students-table td:nth-child(1) {
        width: 15%;
    }

    /* 姓名 */
    .students-table th:nth-child(2),
    .students-table td:nth-child(2) {
        width: 18%;
    }

    /* 专业 */
    .students-table th:nth-child(3),
    .students-table td:nth-child(3) {
        width: 15%;
    }

    /* 学历 */
    .students-table th:nth-child(4),
    .students-table td:nth-child(4) {
        width: 15%;
    }

    /* 工作经验 */
    .students-table th:nth-child(5),
    .students-table td:nth-child(5) {
        width: 22%;
    }

    /* 技能 */
    .students-table th:nth-child(6),
    .students-table td:nth-child(6) {
        width: 15%;
    }

    /* 操作 */

    .tag-small {
        padding: 0.2rem 0.5rem;
        font-size: 0.7rem;
    }

    .students-table .contact-btn {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
    }
}